package com.project.pet.mapper;
import com.project.pet.dto.StarDto;
import com.project.pet.pojo.Star;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface StarMapper extends tk.mybatis.mapper.common.Mapper<Star>{

    @Select({
            "select star.id,star_time starTime,info_id infoId,info.title ",
            "from star,info where star.info_id = info.id and wx_user_id = #{wxUserId}"
    })
    public List<StarDto> selectStars(Integer wxUserId);
}
